function [ EMG_lp_20 ] = EMG_preprocess( raw_data,movement )

% 1. EM1 resample to 1000
% 2. 7 muscle EMG
% 3. filtration

EMG1(:,1) = raw_data.Tlt(movement.onset:movement.offset);
EMG1(:,2) = raw_data.BR(movement.onset:movement.offset);
EMG1(:,3) = raw_data.Tlh(movement.onset:movement.offset);
EMG1(:,4) = raw_data.BI(movement.onset:movement.offset);
EMG1(:,5) = raw_data.DP(movement.onset:movement.offset);
EMG1(:,6) = raw_data.DA(movement.onset:movement.offset);
EMG1(:,7) = raw_data.PC(movement.onset:movement.offset);

EMG = resample(EMG1,1000,(movement.offset - movement.onset));

[EMG_bp,EMG_rt,EMG_lp_20,EMG_lp_6] = EMG_Process(1000*EMG,100, 1000, 2);
    
end

